package com.airticketbooking.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * (Order)实体类
 *
 * @author makejava
 * @since 2024-11-11 18:57:41
 */

@Data
public class Order implements Serializable {
    private static final long serialVersionUID = -73667947968854392L;

    private Integer orderId;

    private Integer userId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderDateTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime upadateDateTime;

    private Integer status;

    private BigDecimal totalPrice;

    private BigDecimal discountAmount;

    private BigDecimal actualAmountDue;

    private Integer discountPoint;


//    本次订单获得积分
    private Integer earnedPoints;

    private int paymentMethod;

}

